package org.jeecg.modules.wangyue.payment.alipay.service;

import com.alipay.api.response.*;
import org.jeecg.modules.wangyue.payment.alipay.request.AlipayBackRequest;
import org.jeecg.modules.wangyue.payment.alipay.request.AlipayCloseRequest;
import org.jeecg.modules.wangyue.payment.alipay.request.AlipayRequest;
import org.jeecg.modules.wangyue.payment.alipay.request.AlipayTransferRequest;

/**
 * @author dhw
 */
public interface IAlipayService {
    /**
     * 查询账户余额
     */
    AlipayFundAccountQueryResponse queryResponse(String sellerId);

    /**
     * 支付包提现
     */
    AlipayFundTransUniTransferResponse fundTransUniTransfer(AlipayTransferRequest alipayTransferRequest);

    /**
     * 支付宝app支付
     */
    AlipayTradeAppPayResponse appAliPay(AlipayRequest alipayRequest);

    /**
     * 交易查询
     */
    AlipayTradeQueryResponse query(String tradeNo);


    /**
     * 支付完成，回调
     */
    void callBack(AlipayBackRequest alipayBackRequest);

    AlipayTradeRefundResponse tradeClose(AlipayCloseRequest tradeCloseRequest);
}
